﻿namespace zijian666.Data;

/// <summary>
/// 连接拦截上下文
/// </summary>
public class DbConnectionInterceptorContext(IDbConnection conn, ConnectionState originalState, long timestamp, CancellationToken cancellationToken)
    : DbInterceptorContext(conn, timestamp, cancellationToken)
{
    public ConnectionState OriginalState { get; } = originalState;
    public ConnectionState NewState { get; } = conn.State;
}
